<div class="warp login">
    <div class="content">
        <label>
            账号: <input [(ngModel)]="account" type="text">
        </label>
        <br>
        <label>
            密码: <input [(ngModel)]="password" type="password">
        </label>
        <div id="loginResult"></div>
        <div class="btnGroup">
            <button (click)="login($event)">登录</button>
            <button (click)="showRegisterView($event)">注册</button>
        </div>
    </div>
</div>

<div class="registerContent">
    <label>
        账号: <br>
        <input [(ngModel)]="account" type="text">
    </label>
    <label>
        密码: <br>
        <input [(ngModel)]="password" type="password">
    </label>
    <label>
        再次确认密码: <br>
        <input [(ngModel)]="passwordRepeat" type="password">
    </label>
    <div id="registerResult"></div>
    <div class="btnGroup">
        <button (click)="register()">注册</button>
        <button (click)="cancelRegister()">取消</button>
    </div>
</div>

